package com.lkbaby.service.impl;

import com.lkbaby.dao.DeptDao;
import com.lkbaby.pojo.Dept;
import com.lkbaby.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

	@Autowired
	private DeptDao deptDao;

	@Override
	public boolean addDept(Dept dept) {
		return deptDao.addDept(dept);
	}

	@Override
	public Dept queryDeptByID(Long deptno) {
		return deptDao.queryDeptByID(deptno);
	}

	@Override
	public List<Dept> queryAll() {
		return deptDao.queryAll();
	}
}
